import request from '@/utils/request'

// 查询运单日志列表
export function listWaybillLog(query) {
  return request({
    url: '/tms/waybillLog/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/tms/waybillLog/initBean',
        method: 'post'
    })
}

// 查询运单日志详细
export function getWaybillLog(id) {
  return request({
    url: '/tms/waybillLog/' + id,
    method: 'get'
  })
}

// 新增运单日志
export function addWaybillLog(data) {
  return request({
    url: '/tms/waybillLog',
    method: 'post',
    data: data
  })
}

// 修改运单日志
export function updateWaybillLog(data) {
  return request({
    url: '/tms/waybillLog',
    method: 'put',
    data: data
  })
}

// 删除运单日志
export function delWaybillLog(id) {
  return request({
    url: '/tms/waybillLog/' + id,
    method: 'delete'
  })
}
